<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>QQ在线状态</title>
<style type="text/css">
body{font-family:dotum;}
</style>
<script type="text/javascript">
var online= new Array();
var qqOnImg = 'http://www.bubujie.net/templates/mda1/img/myqqicon_06_on.png';
var qqOffImg = 'http://www.bubujie.net/templates/mda1/img/myqqicon_06_off.png';
</script>
<script type="text/javascript" src="http://webpresence.qq.com/getonline?Type=1&11995630:11552698:"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.4.2/mootools-yui-compressed.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
var qq = new Array()
qq[0] = 11995630;
qq[1] = 11552698;
var qqAllHtml = '';
for (var i=0 ; i < qq.length ; i++) {
	var qqNum = qq[i];
	if (online[i] == 1) {
		qqHtml = '<a href="http://wpa.qq.com/msgrd?v=1&uin=' + qqNum + '&site=qq&menu=yes" target="_blank"><img style="border:0;" src="' + qqOnImg + '" alt="点击这里给我发消息" title="点击这里给我发消息" />' + qqNum + '</a>';
	} else {
		qqHtml = '<a href="http://wpa.qq.com/msgrd?v=1&uin=' + qqNum + '&site=qq&menu=yes" target="_blank"><img style="border:0;" src="' + qqOffImg +'" alt="点击这里给我留言" title="点击这里给我留言" />' + qqNum + '</a>';
	}
	qqAllHtml = qqAllHtml + qqHtml;
}

// 让 jQuery 交出变量 $ 的控制权
jQuery.noConflict();

// jQuery方法
jQuery(document).ready(function () {
	jQuery("#qqwp2").html('jQuery方法<br />'+qqAllHtml);
})

// MooTools方法
document.addEvent('domready',function(){
	$('qqwp1').set('html', 'MooTools方法<br />'+qqAllHtml);
})
</script>
</head>

<body>
<h1>QQ在线状态</h1>
<hr />
<div id="qqwp1"></div>
<hr />
<div id="qqwp2"></div>
<hr />
</body>
</html>
